#{extends "main_list.html"/}
#{set title:"查看字典数据"/}
%{
map = [:]
map['show']			=	true
map['fields']		=	['form_s','wordType','word','name','sort','flag','notice','form_e']
map['type']			=	['text','relationTree','text','text','text','select','text','text']
map['widths']		=	['100','100','100','100','100','100','100','100']
map['input']  		= 	[:]
map['input']['wordType']	=	['sql':'from WordType where flag=1 order by sort','name':'name']
map['input']['flag']	=	['1':'使用','2':'停用']
map['input']['notice']	=	350
}%
#{form @@save(object.id)}
#{table.form map}
#{table.custom 'word'}
<div class="field" style="width: 100%;">
#{field 'object.word'}
<label for="${field.id}">&{'word.word'}</label>
<select id="${field.id}" name="${field.name}.id">
<option value="">--请选择--</option>
#{if words}
#{list words,as:'word'}
<option value="${word.id}"${word.id==object.word.id?'selected="selected"':""}>${word.name}</option>
#{/list}
#{/if}
</select>
#{/field}	
</div>
#{/table.custom}
#{/table.form}
#{/form}